From 7483ad8d1fd68a7bb28e4341c3178167d1ca2f41 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 3 Oct 2006 13:50:24 +0000 Subject: [PATCH] Curt makes fixes for NG Topo 4. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2373 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/tpo.c | 39 ++++++++++++++++++++++---------- gpsbabel/vecs.c | 2 +- gpsbabel/xmldoc/formats/tpo3.xml | 4 ++-- 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/gpsbabel/tpo.c b/gpsbabel/tpo.c index 0e3c1a22a..505d821d1 100644 --- a/gpsbabel/tpo.c +++ b/gpsbabel/tpo.c @@ -558,7 +558,7 @@ int tpo_find_block(unsigned int block_desired) // Read record type block_type = tpo_read_32(); -//printf("Block: %x\n", block_type); +//printf("Block: %08x\tat offset: %08x\n", block_type, block_offset); // Read offset to next record block_offset = tpo_read_32(); @@ -691,7 +691,7 @@ void tpo_process_tracks(void) sprintf(track_name, "TRK %d", ii+1); } track_temp->rte_name = track_name; -//printf("Track Name: %s\n", track_name); +//printf("\nTrack Name: %s ", track_name); // Route description // track_temp->rte_desc = NULL; @@ -730,37 +730,52 @@ void tpo_process_tracks(void) lat = le_read32(buf+jj); jj+=4; - // Peek to see if next is a lonscale - if(jj+3This module reads .TPO files created by National Geographic Topo! version -3.x. It will read tracks, routes, waypoints, map notes, symbols, and text -notes. The latter three are converted to waypoints. +3.x and 4.x. It will read tracks, routes, waypoints, map notes, symbols, and +text notes. The latter three are converted to waypoints. Contributed by Curt Mills. -- 2.30.2